package br.com.pd.messaging;

import java.util.List;

public class MessageFactory {
	
	public static MessageIF createSupplyMessage(List<Object> list){
		SupplyMessage m = new SupplyMessage(MessageIF.SUPPLY, list);
		return m;
	}
	
	
	public static MessageIF createCotationMessage(List<Object> list){
		MessageIF m = new CotationMessage(MessageIF.COTATION, list);
		return m;
	}
	
	
	public static MessageIF createSubscribeMessage(){
		MessageIF m = new SubscribeMessage(MessageIF.SUBSCRIBE);
		return m;
	}

}
